package org.hs.phd.odi.tracking.tracker;

import java.awt.Color;
import java.awt.Polygon;

public class Track {

	private Color color;
	private TrackWindow trackWindow;

	
	
	public Track(Color color, TrackWindow trackWindow) {
		this.color = color;
		this.trackWindow = trackWindow;
	}

	public Color getColor() {
		return color;
	}

	public void setTrackWindow(TrackWindow trackWindow) {
		this.trackWindow = trackWindow;
	}

	public boolean isEmpty() {
		return trackWindow == null;
	}

	public Polygon getWindowAsPolygon() {
		return trackWindow.getAsPolygon();
	}

}
